﻿<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="addEditBanner.aspx.cs" Inherits="Web.Cms.Advertistment.addEditBanner" Theme="Default" %>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

<%@ Register Assembly="RadCalendar.Net2" Namespace="Telerik.WebControls" TagPrefix="radCln" %>
<%@ Register Assembly="FilePickerControl" Namespace="AWS.FilePicker" TagPrefix="cc1" %>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

<html xmlns="http://www.w3.org/1999/xhtml" >
<head id="Head1" runat="server">
    <title>Cập nhật thông tin banner</title>
</head>
<body>
    <form id="form1" runat="server">
    <p class="heading"><asp:Label ID="lblUpdateStatus" runat="server" ForeColor="red"></asp:Label></p>
    <table border="0" cellpadding="2" cellspacing="2" style="width: 100%">
                <tr>
                    <td colspan="2" align="left">
                        <asp:Literal ID="litMedia" runat="server"></asp:Literal>
                    </td>
                </tr>
                <tr>
                    <td align="right">
                        <strong>Tên banner:</strong>
                    </td>
                    <td>
                        <asp:TextBox ID="txtName" runat="server" Width="292px" onfocus="setBKColor(event);"
                            onblur="reSetBKColor(event);" CssClass="inputRequired"></asp:TextBox>
                        <asp:RequiredFieldValidator ID="RequiredFieldValidator1" runat="server" ErrorMessage="Không được để trống"
                            ControlToValidate="txtName" ForeColor="Red"></asp:RequiredFieldValidator></td>
                </tr>
                <tr>
                    <td align="right">
                        <strong>Thuộc nhóm banner:</strong>
                    </td>
                    <td>
                         <asp:DropDownList ID="dropGroupBanner" runat="server" Width="97px">
                         </asp:DropDownList>
                     </td>
                </tr>
                <tr>
                    <td align="right" valign="top">
                        <strong>Mô tả:</strong>
                    </td>
                    <td>
                        <asp:TextBox ID="txtDescription" runat="server" Rows="3" TextMode="MultiLine" Width="292px"></asp:TextBox></td>
                </tr>
                <tr>
                    <td align="right">
                        <strong>Khách hàng:</strong>
                    </td>
                    <td>
                       <asp:TextBox runat="server" ID="TxtCustomer" Width="277px"></asp:TextBox>
                    </td>
                </tr>
                <tr>
                    <td align="right">
                        <strong>Kiểu quảng cáo:</strong>
                    </td>
                    <td>
                        <asp:DropDownList ID="dropMediaType" runat="server" Width="97px">
                            <asp:ListItem Value="1">Ảnh</asp:ListItem>
                            <asp:ListItem Value="2">Flash</asp:ListItem>
                            <asp:ListItem Value="3">Video</asp:ListItem>
                        </asp:DropDownList>
                        <asp:TextBox ID="txtID" runat="server" Visible="false" Enabled="False" Width="104px"></asp:TextBox>
                        <asp:TextBox ID="txtClick" runat="server" Visible="false" Width="160px"></asp:TextBox>
                        <asp:TextBox ID="txtViewCount" runat="server" Visible="false" Width="160px"></asp:TextBox></td>
                </tr>
                <tr>
                    <td align="right" style="height: 28px">
                        <strong>Địa chỉ trỏ tới:</strong>
                    </td>
                    <td style="height: 28px">
                        <asp:TextBox ID="txtLink" runat="server" Width="277px"></asp:TextBox></td>
                </tr>
                <tr>
                    <td align="right" valign="middle">
                        <strong>Đường dẫn:</strong>
                    </td>
                    <td>
                        <cc1:FilePicker ID="fpMedia" runat="server" fpPopupURL="/FilePicker/FilePicker.aspx"
                            Width="237px" fpUploadSizeLimit="111111111111111111" fpAllowedUploadFileExts="avi,gif,jpg,flv,swf,wmv,bmp"></cc1:FilePicker>
                    </td>
                </tr>                
                <tr>
                    <td align="right">
                        <strong>Thứ tự:</strong>
                    </td>
                    <td>
                        <asp:DropDownList ID="dropPriority" runat="server" Width="60px">
                        </asp:DropDownList></td>
                </tr>
                <tr>
                    <td align="right">
                        <strong>Ngày bắt đầu:</strong>
                    </td>
                    <td>
                        <radCln:RadDateTimePicker ID="rcldStartDate" runat="server">
                            <DateInput ></DateInput>
                            <Calendar ID="Calendar1" RangeMinDate="01-01-2008" runat="server">
                            </Calendar>
                        </radCln:RadDateTimePicker>
                    </td>
                </tr>
                <tr id="trShowWarning" runat="server" visible="false">
                    <td>
                    </td>
                    <td align="left">
                        <asp:Label ID="lblWarning" runat="server" ForeColor="red" Text="Ngày kết thúc phải lớn hơn ngày bắt đầu!"
                            Font-Bold="true"></asp:Label>
                    </td>
                </tr>
                <tr>
                    <td align="right">
                        <strong>Ngày kết thúc:</strong>
                    </td>
                    <td>
                        <radCln:RadDateTimePicker ID="rcldEndDate"    runat="server" MinDate="<%# DateTime.Now %>" FocusedDate="<%# DateTime.Now %>" >
                            <TimeView Skin="" Style="display: none;">
                            </TimeView>
                            
                        </radCln:RadDateTimePicker>
                    </td>
                </tr>
                <tr>
                    <td align="right">
                        <strong>Sử dụng</strong>
                    </td>
                    <td>
                        <asp:CheckBox ID="chkEnable" runat="server" Checked="true" />
                    </td>
                </tr>
                <tr>
                    <td>
                    </td>
                    <td align="left">
                        <asp:LinkButton ID="btnAdd" ToolTip="Thêm mới chuyên mục" runat="server" SkinID="admin-ButtonInsert" OnClick="btnAdd_Click" />  
                    <asp:LinkButton ID="btnUpdate" ToolTip="Chỉnh sửa chuyên mục" runat="server" SkinID="admin-ButtonUpdate" OnClick="btnUpdate_Click" /> 
                    </td>
                </tr>
            </table>
    </form>
</body>
</html>

